#ifndef __ADDRESS_H__
#define __ADDRESS_H__

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include "common.h"
#include "util.h"

typedef struct __address
{
    char *user;
    char *domain;
    char *name;
}Address;

Address*    addr_new ();
void        addr_delete (Address*);
void        addr_clear (Address*);
void        addrs_delete_all (GSList *slist);
void        addrs_print (GSList*);
GSList*     addr_parse (const char*);
void        addr_set(Address*, char* u, char *d, char *n);
int         addr_string(Address*, char*, int);

#endif

